package com.lq.domain;

import java.io.Serializable;

public class User implements Serializable {  
    private static final long serialVersionUID = -4415990281535582814L;  
    private Integer id;  
    private String username;  
    private String password;  
    private String mobile;  
    private String system;		//系统
    private String version;		//APP版本
    private int isAble;		//是否启用。1：是，2：否
    private int multiDevice;	//是否多设备登陆。1：是，2：否


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getSystem() {
		return system;
	}

	public void setSystem(String system) {
		this.system = system;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}



	public int getIsAble() {
		return isAble;
	}

	public void setIsAble(int isAble) {
		this.isAble = isAble;
	}

	public int getMultiDevice() {
		return multiDevice;
	}

	public void setMultiDevice(int multiDevice) {
		this.multiDevice = multiDevice;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "User [enable=" + isAble + ", id=" + id + ", mobile=" + mobile
				+ ", multi=" + multiDevice + ", password=" + password + ", system="
				+ system + ", username=" + username + ", version=" + version
				+ "]";
	}

	@Override  
    public int hashCode() {  
        final int prime = 31;  
        int result = 1;  
        result = prime * result + ((id == null) ? 0 : id.hashCode());  
        return result;  
    }  
  
    @Override  
    public boolean equals(Object obj) {  
        if (this == obj)  
            return true;  
        if (obj == null)  
            return false;  
        if (getClass() != obj.getClass())  
            return false;  
        User other = (User) obj;  
        if (id == null) {  
            if (other.id != null)  
                return false;  
        } else if (!id.equals(other.id))  
            return false;  
        return true;  
    }  
}  